package cn.lingyangwl.agile.system.mapper;

import cn.lingyangwl.agile.system.model.entity.SysRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shenguangyang
 */
@Mapper
public interface SysRoleMenuRelMapper extends BaseMapper<SysRoleMenu> {
    /**
     * 批量新增角色菜单信息
     *
     * @param roleMenuList 角色菜单列表
     * @return 结果
     */
    int batchRoleMenu(List<SysRoleMenu> roleMenuList);
    List<String> listActionByUserId(@Param("userId") Long userId);
}
